home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- end
-
- on stopMovie
- unLoadCast()
- sound stop 1
- end
-
- on playcdda
- global gcdaudio, gmusictruck
- set gcdaudio to opencdda()
- set len to mgettracklength(gcdaudio, gmusictruck)
- set the timeoutLength to len / 75 * 60
- mplayloop(gcdaudio, [gmusictruck, 0])
- end
-
- on stopcdaudio
- global gcdaudio
- mpause(gcdaudio)
- mcancelloop(gcdaudio)
- repeat while mreadstatus(gcdaudio) = 1
- end repeat
- mdispose(gcdaudio)
- end
-
- on initkpanlist
- global thekpanlist
- set thestamplist to EMPTY
- set thekpanlist to "01INTRO_, ,@::RTRV:02MENU__,1" & RETURN
- put "03MOMO__,@::RTRV:RTRV0300,@::RTRV:02MENU__,3" & RETURN after thekpanlist
- put "04YONONK,@::RTRV:RTRV0400,@::RTRV:02MENU__,4" & RETURN after thekpanlist
- put "05ONAJI_,@::RTRV:RTRV0500,@::RTRV:02MENU__,5" & RETURN after thekpanlist
- put "06YOKITM,@::RTRV:RTRV0600,@::RTRV:02MENU__,6" & RETURN after thekpanlist
- put "07UTATAN,@::RTRV:RTRV0700,@::RTRV:02MENU__,7" & RETURN after thekpanlist
- put "08MONOOM,@::RTRV:RTRV0800,@::RTRV:02MENU__,8" & RETURN after thekpanlist
- put "09TURIAG,@::RTRV:RTRV0900,@::RTRV:02MENU__,9" & RETURN after thekpanlist
- put "10KOGOTO,@::RTRV:RTRV1000,@::RTRV:02MENU__,10" & RETURN after thekpanlist
- put "11NOZARS,@::RTRV:RTRV1100,@::RTRV:02MENU__,11" & RETURN after thekpanlist
- put "12KOCHI_,@::RTRV:RTRV1200,@::RTRV:02MENU__,12" & RETURN after thekpanlist
- put "13URIHAM,@::RTRV:RTRV1300,@::RTRV:02MENU__,13" & RETURN after thekpanlist
- put "14IROHA_,@::RTRV:RTRV1400,@::RTRV:02MENU__,14" & RETURN after thekpanlist
- put "15TUKIWO,@::RTRV:RTRV1500,@::RTRV:02MENU__,15" & RETURN after thekpanlist
- put "16TUINI_,@::RTRV:RTRV1600,@::RTRV:02MENU__,16" & RETURN after thekpanlist
- put "17OUJYOU,@::RTRV:RTRV1700,@::RTRV:02MENU__,17" & RETURN after thekpanlist
- put "RTRV0300, ,@::PCBK:03MOMO__,18" & RETURN after thekpanlist
- end
-
- on getkpanlistdata
- global thekpanlist, gnextmovie, gprevmovie, grtrvmovie, grtrnmovie, gmusictruck
- set amovie to the movie
- repeat with i = 1 to 19
- set checkLine to line i of thekpanlist
- set amovie2 to item 1 of checkLine
- if amovie = amovie2 then
- set grtrvmovie to item 2 of checkLine
- set grtrnmovie to item 3 of checkLine
- set amusictruck to item 4 of checkLine
- set gmusictruck to value(amusictruck) + 1
- set checkLine to line i - 1 of thekpanlist
- set gprevmovie to item 1 of checkLine
- set checkLine to line i + 1 of thekpanlist
- set gnextmovie to item 1 of checkLine
- exit
- end if
- end repeat
- end
-
- on waitticks atickcount
- set theendtime to ticks() + atickcount
- repeat while ticks() < theendtime
- nothing()
- end repeat
- end
-
- on disablebuttons
- set the visible of sprite 30 to 0
- set the visible of sprite 31 to 0
- set the visible of sprite 32 to 0
- set the visible of sprite 33 to 0
- end
-